﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace MMS.Validation
{
    public static class ValidateFormMaterialInfo
    {
        static string blank = "";
        public static bool validateUI(FormMaterialInfo f)
        {
            bool finalResult = true;
            if (f.txtPriceByDay.Text.Equals(blank) || f.txtName.Text.Equals(blank))
            {
                finalResult = false;

            }

            return finalResult;
        }
        public static bool validateMaterialInfoDTO(MaterialDTO m)
        {
            bool finalResult = true;
            if (m.Name.Equals(blank) || m.PriceByDay.Equals(blank)||m.UnitName.Equals(blank))
            {
                finalResult = false;
            }
            return finalResult;
        }
    }
}
